﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Task.aspx.cs" Inherits="MyDMS_ExtJS.Admin.Task" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" />
    <ext:DropDownList runat="server" ID="ddlProject" Label="中项"
        onselectedindexchanged="ddlProject_SelectedIndexChanged" AutoPostBack="True"></ext:DropDownList>
    <ext:Grid ID="Grid1" Title="表格" ShowBorder="true" ShowHeader="False" AutoHeight="true"
        PageSize="3" runat="server" EnableCheckBoxSelect="True" DataKeyNames="Task_Code"
        AutoWidth="True" EnableRowNumber="True">
        <Toolbars>
            <ext:Toolbar ID="Toolbar2" runat="server">
                <Items>
                    <ext:Button ID="btnNew" Text="新增数据" Icon="Add" EnablePostBack="false" runat="server">
                    </ext:Button>
                    <ext:Button ID="btnDelete" Text="删除选中项" Icon="Delete" OnClick="btnDelete_Click" runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>
            <ext:BoundField runat="server" DataField="Task_Code" HeaderText="Task_Code" />
            <ext:TemplateField Width="260px" SortField="Task_Title" HeaderText="名称/描述" >
                <ItemTemplate>
                    <strong style="font-weight: bold">
                        <%#DataBinder.Eval(Container.DataItem, "Task_Title")%></strong>
                    <br />
                    <span>
                        <%#DataBinder.Eval(Container.DataItem, "Task_Desc")%></span>
                </ItemTemplate>
            </ext:TemplateField>
            <ext:BoundField runat="server" DataField="AssginedToName" HeaderText="负责人" />
            <ext:BoundField runat="server" DataField="Is_Anonymous" HeaderText="是否公开"/>
            <ext:BoundField runat="server" DataField="Creation_Date" HeaderText="创建日期" />
            <ext:BoundField runat="server" DataField="Updation_Date" HeaderText="更新日期" />
            <ext:TemplateField HeaderText="编辑">
                <ItemTemplate>
                    <a href="<%# GetEditUrl(DataBinder.Eval(Container.DataItem, "Task_Code"), DataBinder.Eval(Container.DataItem, "Task_Title")) %>">
                        编辑</a>
                </ItemTemplate>
            </ext:TemplateField>
        </Columns>
    </ext:Grid>
    <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        Target="Top" IsModal="True" Width="450px" Height="230px">
    </ext:Window>
    </form>
</body>
</html>
